package com.example;
import java.rmi.*;
public class ExampleClient {
	public static void main ( String[] args ) {
		try {
			// Tim doi tuong tu` xa "Example trong RMI registry
			Example example = (Example) Naming.lookup( "Example" );
			//
			// Truye`n vao 1 chuoi~ va doc. no' ra tro lai roi xuat ra man hinh
			example.setString( "Success!" );
			System.out.println( example.getString() );
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
